package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.CarBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ICarMapper extends BaseMapper<CarBean> {
    /**
     * 动态条件查询汽车
     * @param  page 分页对象
     * @param startPrice 起始价格
     * @param endPrice 结束价格
     * @return 汽车集合
     */
    public IPage<CarBean> findByItem(Page page,@Param("startPrice") Integer startPrice,
                                     @Param("endPrice") Integer endPrice);
}
